package com.pptiku.jh.routerdemo.dagger2.module;

import android.content.Context;

import com.pptiku.jh.routerdemo.App;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by ytf on 2018/6/5.
 * Description:
 */
@Module
public class AppModule
{
    App context;

    public AppModule(App context)
    {
        this.context = context;
    }

    @Provides
    @Singleton
    App provideApp()
    {
        return context;
    }
}
